import request from "@/utils/request"

// 部门列表
export function deptLists(params?: any) {
    return request.get({ url: "/dept/dept/lists", params })
}

// 添加部门
export function deptAdd(params: any) {
    return request.post({ url: "/dept/dept/add", params })
}

// 编辑部门
export function deptEdit(params: any) {
    return request.post({ url: "/dept/dept/edit", params })
}

// 删除部门
export function deptDelete(params: any) {
    return request.post({ url: "/dept/dept/delete", params })
}

// 部门详情
export function deptDetail(params: any) {
    return request.get({ url: "/dept/dept/detail", params })
}

// 部门列表全部
export function deptAll() {
    return request.get({ url: "/dept/dept/all" })
}
